import { otherRoutes } from "./modules/other"

// 根路由
export const RootRoute = {
    path: '/',
    name: 'Root',
    component: () => import("@/components/Layouts/index.vue"),
    redirect: '/index',
    meta: {
        title: 'root',
    },
    children: [
        {
            path: "/index",
            name: 'Index',
            component: () => import("@/views/Index.vue"),
            meta: {
                title: '首页',
            },
        },
        ...otherRoutes,
    ],
};
// 无导航页面
export const notNavRoutes = [
    {
        path: "/login",
        name: 'Login',
        component: () => import("@/views/Login.vue"),
        meta: {
            title: '登录',
        },
    },
]

export const basicRoutes = [
    RootRoute,
    ...notNavRoutes,
];
